window.addEventListener("focus", function(event) { document.getElementById('f').innerHTML = "focus"; }, false);
window.addEventListener("blur", function(event) { document.getElementById('f').innerHTML = "no-focus"; }, false);

